# -*- coding: utf-8 -*-
import datetime
from utils.Command import BaseCommand
import logging
logger = logging.getLogger(__name__)
import time
from app.ops.ExpoAICoreProcessor import ExpoAICoreProcessor


class WarnEmergencyCommand(BaseCommand):
    def run(self, args):
        print("你好")
        try:
            while True:
                if datetime.datetime.now().hour > 1:
                    ExpoAICoreProcessor()
                time.sleep(60*30)
        except Exception as e:
            logger.error(e)
            print(e)